package com.neo.impatient.C10__Trait.C10_08_TraitFiled


trait ShortLogger extends Logger{

  val maxLength = 15

  abstract override def log(msg: String): String = {
    super.log(
      if (msg.length <= maxLength) msg
      else s"${msg.substring(0,maxLength -3)}"
    )
  }
}
